package org.smarthings.things.automation.rest.resources;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name = "ruleCondition")
@XmlRootElement(name = "ruleCondition")
public class ConditionResource {

	private String script;
	private String language;

	@XmlElement(name = "script", required = true)
	public String getScript() {
		return script;
	}

	public void setScript(String script) {
		this.script = script;
	}

	@XmlElement(name = "language", required = true)
	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

}
